package com.xsh.opensltest;

public class SlEngine
{
    static {
        System.loadLibrary("slesengine");
    }
    public native static void initEngine();

    public native static void destoryEngine();
    public native static void play();

    public native static void stop();

    public native static void pause();

    public native static boolean loadPlugin(String path);
    // 循环ai是否使用bool返回类型
    public native static boolean testLoadOnePlugin(String path);
    public native static void changeActiveInsParam(String param,double value);
    // 用于波形切换等固定数值非浮动小数
    public native static void changeActiveInsParamEnum(String param,int enum_value);
    public native static void changeActiveInsParamBool(String param,boolean value);
    // 当前激活的乐器按下钢琴时
    public native static void activeNoteOn(int midi_note);
    public native static void activeNoteOff(int midiNote);

    public native static void removePlugin(int idx);

    public native static void setActiveInstrument(int index);

    public native static void sendEvent(String eventName, Object value);

    public native static void renderToFile(String mode,String file_type) ;

    public native static void pluginEventHandlerTest();
}
